package com.example.wemedia.controller;
import com.example.wemedia.service.FansStatisticsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Tag(name = "FansStatistics")
@RestController
@RequestMapping("fansStatistics")
public class FansStatisticsController  {
    @Autowired
    private FansStatisticsService fansStatisticsService;

    /*@GetMapping("/getInfo/{id}")
    @Operation(summary = "按照ID编号查看")
    public ResultBean<FansStatistics> selectOne(@PathVariable Serializable id) {
        return ResultBean.success(this.fansStatisticsService.getById(id));
    }

    @PostMapping("/save")
    @Operation(summary = "增加FansStatistics")
    public ResultBean insert(@RequestBody FansStatistics fansStatistics) {
        this.fansStatisticsService.save(fansStatistics);
        return ResultBean.success();
    }

    @PutMapping("/update")
    @Operation(summary = "修改FansStatistics")
    public ResultBean update(@RequestBody FansStatistics fansStatistics) {
        this.fansStatisticsService.updateById(fansStatistics);
        return ResultBean.success();
    }

    @DeleteMapping("/remove")
    @Operation(summary = "删除FansStatistics")
    public ResultBean delete(@RequestParam("idList") List<Long> idList) {
        this.fansStatisticsService.removeByIds(idList);
        return ResultBean.success();
    }*/
}

